local key = KEYS[1]
local value = ARGV[1]

local preUip = redis.call('PFCOUNT', key)
redis.call('PFADD', key, value)
local afterUip = redis.call('PFCOUNT', key)

if afterUip > preUip then
    return 1
else
    return 0
end
